package com.baizhi.zjs.entity;

import java.io.Serializable;

public class FrontAddressEntity implements Serializable {
private String id;
private String name;//-姓名
private String detail;//地址
private String zip_code;//邮编

private String mobile;//手机
private String user_id;//用户id
public FrontAddressEntity(String id, String name, String detail,
		String zip_code, String mobile, String user_id) {
	super();
	this.id = id;
	this.name = name;
	this.detail = detail;
	this.zip_code = zip_code;
	this.mobile = mobile;
	this.user_id = user_id;
}
public FrontAddressEntity() {
	super();
}
public String getId() {
	return id;
}
public void setId(String id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getDetail() {
	return detail;
}
public void setDetail(String detail) {
	this.detail = detail;
}
public String getZip_code() {
	return zip_code;
}
public void setZip_code(String zip_code) {
	this.zip_code = zip_code;
}
public String getMobile() {
	return mobile;
}
public void setMobile(String mobile) {
	this.mobile = mobile;
}
public String getUser_id() {
	return user_id;
}
public void setUser_id(String user_id) {
	this.user_id = user_id;
}
@Override
public String toString() {
	return "FrontAddressEntity [id=" + id + ", name=" + name + ", detail="
			+ detail + ", zip_code=" + zip_code + ", mobile=" + mobile
			+ ", user_id=" + user_id + "]";
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((detail == null) ? 0 : detail.hashCode());
	result = prime * result + ((id == null) ? 0 : id.hashCode());
	result = prime * result + ((mobile == null) ? 0 : mobile.hashCode());
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((user_id == null) ? 0 : user_id.hashCode());
	result = prime * result + ((zip_code == null) ? 0 : zip_code.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	FrontAddressEntity other = (FrontAddressEntity) obj;
	if (detail == null) {
		if (other.detail != null)
			return false;
	} else if (!detail.equals(other.detail))
		return false;
	if (id == null) {
		if (other.id != null)
			return false;
	} else if (!id.equals(other.id))
		return false;
	if (mobile == null) {
		if (other.mobile != null)
			return false;
	} else if (!mobile.equals(other.mobile))
		return false;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	if (user_id == null) {
		if (other.user_id != null)
			return false;
	} else if (!user_id.equals(other.user_id))
		return false;
	if (zip_code == null) {
		if (other.zip_code != null)
			return false;
	} else if (!zip_code.equals(other.zip_code))
		return false;
	return true;
}

}
